package com.example.demo.Mapper;

import com.example.demo.Pojo.CartDTO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CartMapper {

    @Delete("delete from shixun.cart where id = #{id}")
    void delete(int id);

    @Select("select * from cart")
    List<CartDTO> show();

}
